#define _CRT_SECURE_NO_WARNINGS 1
#include "RBTree.h"
using namespace std;
int main()
{
	/*RBTree<int, int> rb1;
	rb1.insert(make_pair(8, 8));
	rb1.insert(make_pair(1, 1));
	rb1.insert(make_pair(9, 9));
	rb1.insert(make_pair(10, 10));
	rb1.Inorder();
	cout << rb1.IsRBtree();*/

	int a[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14, 16, 3, 7, 11, 9, 26, 18, 14, 15 };
	RBTree<int, int> t1;
	for (auto e : a)
	{
		t1.insert(make_pair(e, e));
	}
	t1.Inorder();

	cout << t1.IsRBtree();
	return 0;
}